<%@ taglib uri="/WEB-INF/tld/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/tld/struts-bean.tld" prefix="bean" %> 
<%@ taglib uri="/WEB-INF/tld/c.tld" prefix="c"%>

<div>
	<ul id="pageList">
		<c:forEach var = "listElement" items = "${requestScope.newsPage}" varStatus="counter">
			<li>
				<a href="<c:url value="/ViewDeleteNews.do?page=${counter.count}"/>">${counter.count}</a>
			</li>
		</c:forEach>  
	</ul>

</div><br />

	
	<c:forEach var = "listElement" items = "${requestScope.newsList}">

		<table class="newsadmin">
		    <tr class="newshead">
		        <td>
		       <c:out value="${listElement.title}"/>
		        </td>
		        <td class="newsdate">
		        	<c:out value="${listElement.creation_date}"/>
		        </td>
		    </tr>
		    <tr class="newsdes">
		        <td colspan="2">
		        	<c:out value="${listElement.description}"/>
		        </td>
		        </tr>
		   
		       
		        <tr>
		           <td colspan="2">
		        	 <a href="${listElement.link}"><c:out value="${listElement.link}"/></a>
		        </td>
		    </tr>
		    <tr class="newsbottom">
		    
		    <td>
		       <a href="<c:url value="/DeleteNews.do?id=${listElement.id}"/>"><bean:message key="Delnews.label"/></a>
		      
		    </td>
		    </tr>
		</table>
		<br />
	
	</c:forEach>
<div>
	<ul id="pageList">
		<c:forEach var = "listElement" items = "${requestScope.newsPage}" varStatus="counter">
			<li>
				<a href="<c:url value="/ShowNews.do?page=${counter.count}"/>">${counter.count}</a>
			</li>
		</c:forEach>  
	</ul>

</div><br />
